package com.un.ebs.question.domain;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (Question)表实体类
 *
 * @author makejava
 * @since 2021-06-04 15:30:13
 */
@Data
@Component
@TableName("tb_question")
@SuppressWarnings("serial")
public class Question extends Model<Question> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "level_dict",  length = 20 , precision = 0)
    private String levelDict;
                
    @DbField(name = "quality_type",  length = -1 , precision = 0)
    private Integer qualityType;
                
    @DbField(name = "create_user_id",  length = 40 , precision = 0)
    private String createUserId;
                
    @DbField(name = "create_person_name",  length = 100 , precision = 0)
    private String createPersonName;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;
                
    @DbField(name = "update_time",  length = -1 , precision = 0)
    private Date updateTime;
                
    @DbField(name = "update_user_id",  length = 40 , precision = 0)
    private String updateUserId;
                
    @DbField(name = "update_person_name",  length = 100 , precision = 0)
    private String updatePersonName;
                
    @DbField(name = "submit_status",  length = -1 , precision = 0)
    private Boolean submitStatus;
                
    @DbField(name = "submit_user_id",  length = 40 , precision = 0)
    private String submitUserId;
                
    @DbField(name = "submit_personal_name",  length = 100 , precision = 0)
    private String submitPersonalName;
                
    @DbField(name = "submit_time",  length = -1 , precision = 0)
    private Date submitTime;
                
    @DbField(name = "audit_status",  length = -1 , precision = 0)
    private Boolean auditStatus;
                
    @DbField(name = "audit_user_id",  length = 40 , precision = 0)
    private String auditUserId;
                
    @DbField(name = "audit_personal_name",  length = 100 , precision = 0)
    private String auditPersonalName;
                
    @DbField(name = "audit_time",  length = -1 , precision = 0)
    private Date auditTime;
                
    @DbField(name = "parent_id",  length = 40 , precision = 0)
    private String parentId;
                
    @DbField(name = "workflow_instance_id",  length = 40 , precision = 0)
    private String workflowInstanceId;
                
    @DbField(name = "workflow_pass_status",  length = -1 , precision = 0)
    private Boolean workflowPassStatus;
            
    @TableLogic        
    @DbField(name = "is_delete",  length = -1 , precision = 0)
    private Boolean isDelete;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}